package cn.edu.hunau.dao;

import cn.edu.hunau.exception.DaoException;
import cn.edu.hunau.pojo.User;


/**
 * @Author 苏佳
 * @Date 2023 01 03 21 14
 **/
public interface BackstageDao {
    public int countOrderByMouthAndOstate(int month,int ostate)throws DaoException;
    /**
     *最近月份用户注册人数统计
     * @param month
     * @return
     * @throws DaoException
     */
    public int countByMonth(int month)throws DaoException;

    /**
     * 查询该类别的售出商品详情
     * @param cid
     * @return
     * @throws DaoException
     */
    public int queryCategorySumByCid(int cid)throws DaoException;


    User queryByUserNameAndPwd(String username, String pwd)throws DaoException;
}
